﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/masAdmin.master" AutoEventWireup="true"
    CodeFile="DocumentDetail.aspx.cs" Inherits="admin_DocumentDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="content-box-header">
        <h3>
            Sản phẩm cùng loại
        </h3>
    </div>
    <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
            <table border="0" cellpadding="0" cellspacing="0" class="table100">
                <tr>
                    <td colspan="2">
                        <span class="commentRequireInputText">
                            <%=Resources.Resource.LBL_REQUIREMENT%>
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td align="left">
                        <asp:ValidationSummary ID="vsumMSDS" runat="server" ShowMessageBox="true" ShowSummary="false"
                            CssClass="errorMessage" />
                        <asp:Label ID="lblErrorMessage" runat="server" CssClass="errorMessage"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top">
                        Hình ảnh:
                    </td>
                    <td colspan="3">
                        <asp:FileUpload ID="fulFile" runat="server" />
                        <asp:CustomValidator ID="cusFile" runat="server" SetFocusOnError="true" EnableClientScript="true"
                            Display="Dynamic" ErrorMessage="RequiredFieldValidator" OnServerValidate="CheckSDocumentValid"
                            ControlToValidate="fulFile">*</asp:CustomValidator>
                        <asp:HiddenField ID="hidFile" runat="server" />
                    </td>
                </tr>
                <tr id="trPath" runat="server" visible="false">
                    <td>
                    </td>
                    <td>
                        <asp:Literal ID="ltrPath"  runat="server" Text="">
                        </asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Tên <span class="commentRequireInputText">*</span>:
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" MaxLength="256" Width="215px" runat="server">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="reqName" runat="server" EnableClientScript="true"
                            CssClass="errorMessage" ErrorMessage="Title is require" Display="Dynamic" ControlToValidate="txtName">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Kích cỡ:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpSize" MaxLength="256" Width="150px" runat="server"></asp:DropDownList>
                        <asp:TextBox ID="txtSize" MaxLength="256" Width="120px" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Màu sắc:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpColor" MaxLength="256" Width="150px" runat="server"></asp:DropDownList>
                        <asp:TextBox ID="txtColor" MaxLength="256" Width="120px" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="150px" align="right">
                        Chất liệu:
                    </td>
                    <td>
                        <asp:DropDownList ID="drpMaterial" MaxLength="256" Width="150px" runat="server"></asp:DropDownList>
                        <asp:TextBox ID="txtMaterial" MaxLength="256" Width="120px" runat="server"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td width="150px" align="right">
                        Mã SP:
                    </td>
                    <td>
                        <asp:TextBox ID="txtSKU" MaxLength="50" Width="215px" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Hiện:
                    </td>
                    <td>
                        <asp:CheckBox ID="chkIsActive" runat="server" Checked="true" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="height: 40px;" valign="bottom">
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" OnClick="btnSave_Click"
                            CausesValidation="true" />
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" Text="Cancel" OnClick="btnCancel_Click"
                            CausesValidation="false" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        function SelectFile(value) {
            var index = value.lastIndexOf('\\');
            var name = '';
            if (index > 0) {
                name = value.substring(index + 1, value.length);
            }
            else name = value;
            document.getElementById('<%=txtName.ClientID %>').value = name;
        }
    </script>
</asp:Content>
